﻿<?php
//连接数据库操作
include 'conn_mysql.php';
session_start(); 
$bigtype =$_REQUEST['bigtype'];
$id=$_REQUEST['id'];

$_FILES["file"]["name"] = date("Y-m-d") . rand() . ".png"; 
$i=move_uploaded_file($_FILES["file"]["tmp_name"],"picture/" . $_FILES["file"]["name"]);


$bigtype101 = $_REQUEST['bigtype101'];
$is_add101  = $_REQUEST['is_add101'];
$day101     = $_REQUEST['day101'];
if(strlen($bigtype101)>0){
	$_SESSION['day'] = $day101;
	if(strlen($is_add101)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day101','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add101'";
		$query = mysql_query($sql);
	}
}


$bigtype102 = $_REQUEST['bigtype102'];
$is_add102  = $_REQUEST['is_add102'];
$day102     = $_REQUEST['day102'];
if(strlen($bigtype102)>0){
	$_SESSION['day'] = $day102;
	if(strlen($is_add102)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day102','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add102'";
		$query = mysql_query($sql);
	}
}

$bigtype103 = $_REQUEST['bigtype103'];
$is_add103  = $_REQUEST['is_add103'];
$day103     = $_REQUEST['day103'];
if(strlen($bigtype103)>0){
	$_SESSION['day'] = $day103;
	if(strlen($is_add103)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day103','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add103'";
		$query = mysql_query($sql);
	}
}



$bigtype111 = $_REQUEST['bigtype111'];
$is_add111  = $_REQUEST['is_add111'];
$day111     = $_REQUEST['day111'];
if(strlen($bigtype111)>0){
	if(strlen($is_add111)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day111','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add111'";
		$query = mysql_query($sql);
	}
}


$bigtype112 = $_REQUEST['bigtype112'];
$is_add112  = $_REQUEST['is_add112'];
$day112     = $_REQUEST['day112'];
if(strlen($bigtype112)>0){
	if(strlen($is_add112)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day112','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add112'";
		$query = mysql_query($sql);
	}
}

$bigtype113 = $_REQUEST['bigtype113'];
$is_add113  = $_REQUEST['is_add113'];
$day113     = $_REQUEST['day113'];
if(strlen($bigtype113)>0){
	if(strlen($is_add113)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day113','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add113'";
		$query = mysql_query($sql);
	}
}


$bigtype121 = $_REQUEST['bigtype121'];
$is_add121  = $_REQUEST['is_add121'];
$day121     = $_REQUEST['day121'];
if(strlen($bigtype121)>0){
	if(strlen($is_add121)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day121','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add121'";
		$query = mysql_query($sql);
	}
}


$bigtype122 = $_REQUEST['bigtype122'];
$is_add122  = $_REQUEST['is_add122'];
$day122     = $_REQUEST['day122'];
if(strlen($bigtype122)>0){
	if(strlen($is_add122)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day122','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add122'";
		$query = mysql_query($sql);
	}
}

$bigtype123 = $_REQUEST['bigtype123'];
$is_add123  = $_REQUEST['is_add123'];
$day123     = $_REQUEST['day123'];
if(strlen($bigtype123)>0){
	if(strlen($is_add123)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day123','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add123'";
		$query = mysql_query($sql);
	}
}

$bigtype131 = $_REQUEST['bigtype131'];
$is_add131  = $_REQUEST['is_add131'];
$day131     = $_REQUEST['day131'];
if(strlen($bigtype131)>0){
	if(strlen($is_add131)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day131','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add131'";
		$query = mysql_query($sql);
	}
}


$bigtype132 = $_REQUEST['bigtype132'];
$is_add132  = $_REQUEST['is_add132'];
$day132     = $_REQUEST['day132'];
if(strlen($bigtype132)>0){
	if(strlen($is_add132)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day132','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add132'";
		$query = mysql_query($sql);
	}
}

$bigtype133 = $_REQUEST['bigtype133'];
$is_add133  = $_REQUEST['is_add133'];
$day133     = $_REQUEST['day133'];
if(strlen($bigtype133)>0){
	if(strlen($is_add133)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day133','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add133'";
		$query = mysql_query($sql);
	}
}


$bigtype141 = $_REQUEST['bigtype141'];
$is_add141  = $_REQUEST['is_add141'];
$day141     = $_REQUEST['day141'];
if(strlen($bigtype141)>0){
	if(strlen($is_add141)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day141','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add141'";
		$query = mysql_query($sql);
	}
}


$bigtype142 = $_REQUEST['bigtype142'];
$is_add142  = $_REQUEST['is_add142'];
$day142     = $_REQUEST['day142'];
if(strlen($bigtype142)>0){
	if(strlen($is_add142)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day142','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add142'";
		$query = mysql_query($sql);
	}
}

$bigtype143 = $_REQUEST['bigtype143'];
$is_add143  = $_REQUEST['is_add143'];
$day143     = $_REQUEST['day143'];
if(strlen($bigtype143)>0){
	if(strlen($is_add143)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day143','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add143'";
		$query = mysql_query($sql);
	}
}


$bigtype151 = $_REQUEST['bigtype151'];
$is_add151  = $_REQUEST['is_add151'];
$day151     = $_REQUEST['day151'];
if(strlen($bigtype151)>0){
	if(strlen($is_add151)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day151','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add151'";
		$query = mysql_query($sql);
	}
}


$bigtype152 = $_REQUEST['bigtype152'];
$is_add152  = $_REQUEST['is_add152'];
$day152     = $_REQUEST['day152'];
if(strlen($bigtype152)>0){
	if(strlen($is_add152)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day152','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add152'";
		$query = mysql_query($sql);
	}
}

$bigtype153 = $_REQUEST['bigtype153'];
$is_add153  = $_REQUEST['is_add153'];
$day153     = $_REQUEST['day153'];
if(strlen($bigtype153)>0){
	if(strlen($is_add153)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day153','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add153'";
		$query = mysql_query($sql);
	}
}

$bigtype161 = $_REQUEST['bigtype161'];
$is_add161  = $_REQUEST['is_add161'];
$day161     = $_REQUEST['day161'];
if(strlen($bigtype161)>0){
	if(strlen($is_add161)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day161','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add161'";
		$query = mysql_query($sql);
	}
}


$bigtype162 = $_REQUEST['bigtype162'];
$is_add162  = $_REQUEST['is_add162'];
$day162     = $_REQUEST['day162'];
if(strlen($bigtype162)>0){
	if(strlen($is_add162)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day162','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add162'";
		$query = mysql_query($sql);
	}
}

$bigtype163 = $_REQUEST['bigtype163'];
$is_add163  = $_REQUEST['is_add163'];
$day163     = $_REQUEST['day163'];
if(strlen($bigtype163)>0){
	if(strlen($is_add163)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day163','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add163'";
		$query = mysql_query($sql);
	}
}

$bigtype171 = $_REQUEST['bigtype171'];
$is_add171  = $_REQUEST['is_add171'];
$day171     = $_REQUEST['day171'];
if(strlen($bigtype171)>0){
	if(strlen($is_add171)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day171','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add171'";
		$query = mysql_query($sql);
	}
}


$bigtype172 = $_REQUEST['bigtype172'];
$is_add172  = $_REQUEST['is_add172'];
$day172     = $_REQUEST['day172'];
if(strlen($bigtype172)>0){
	if(strlen($is_add172)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day172','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add172'";
		$query = mysql_query($sql);
	}
}

$bigtype173 = $_REQUEST['bigtype173'];
$is_add173  = $_REQUEST['is_add173'];
$day173     = $_REQUEST['day173'];
if(strlen($bigtype173)>0){
	if(strlen($is_add173)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day173','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add173'";
		$query = mysql_query($sql);
	}
}

$bigtype181 = $_REQUEST['bigtype181'];
$is_add181  = $_REQUEST['is_add181'];
$day181     = $_REQUEST['day181'];
if(strlen($bigtype181)>0){
	if(strlen($is_add181)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day181','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add181'";
		$query = mysql_query($sql);
	}
}


$bigtype182 = $_REQUEST['bigtype182'];
$is_add182  = $_REQUEST['is_add182'];
$day182     = $_REQUEST['day182'];
if(strlen($bigtype182)>0){
	if(strlen($is_add182)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day182','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add182'";
		$query = mysql_query($sql);
	}
}

$bigtype183 = $_REQUEST['bigtype183'];
$is_add183  = $_REQUEST['is_add183'];
$day183     = $_REQUEST['day183'];
if(strlen($bigtype183)>0){
	if(strlen($is_add183)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day183','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add183'";
		$query = mysql_query($sql);
	}
}


$bigtype191 = $_REQUEST['bigtype191'];
$is_add191  = $_REQUEST['is_add191'];
$day191     = $_REQUEST['day191'];
if(strlen($bigtype191)>0){
	if(strlen($is_add191)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day191','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add191'";
		$query = mysql_query($sql);
	}
}


$bigtype192 = $_REQUEST['bigtype192'];
$is_add192  = $_REQUEST['is_add192'];
$day192     = $_REQUEST['day192'];
if(strlen($bigtype192)>0){
	if(strlen($is_add192)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day192','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add192'";
		$query = mysql_query($sql);
	}
}

$bigtype193 = $_REQUEST['bigtype193'];
$is_add193  = $_REQUEST['is_add193'];
$day193     = $_REQUEST['day193'];
if(strlen($bigtype193)>0){
	if(strlen($is_add193)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day193','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add193'";
		$query = mysql_query($sql);
	}
}

$bigtype1101 = $_REQUEST['bigtype1101'];
$is_add1101  = $_REQUEST['is_add1101'];
$day1101     = $_REQUEST['day1101'];
if(strlen($bigtype1101)>0){
	if(strlen($is_add1101)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day1101','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add1101'";
		$query = mysql_query($sql);
	}
}


$bigtype1102 = $_REQUEST['bigtype1102'];
$is_add1102  = $_REQUEST['is_add1102'];
$day1102     = $_REQUEST['day1102'];
if(strlen($bigtype1102)>0){
	if(strlen($is_add1102)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day1102','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add1102'";
		$query = mysql_query($sql);
	}
}

$bigtype1103 = $_REQUEST['bigtype1103'];
$is_add1103  = $_REQUEST['is_add1103'];
$day1103     = $_REQUEST['day1103'];
if(strlen($bigtype1103)>0){
	if(strlen($is_add1103)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day1103','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add1103'";
		$query = mysql_query($sql);
	}
}

$bigtype1111 = $_REQUEST['bigtype1111'];
$is_add1111  = $_REQUEST['is_add1111'];
$day1111     = $_REQUEST['day1111'];
if(strlen($bigtype1111)>0){
	if(strlen($is_add1111)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day1111','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add1111'";
		$query = mysql_query($sql);
	}
}


$bigtype1112 = $_REQUEST['bigtype1112'];
$is_add1112  = $_REQUEST['is_add1112'];
$day1112     = $_REQUEST['day1112'];
if(strlen($bigtype1112)>0){
	if(strlen($is_add1112)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day1112','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add1112'";
		$query = mysql_query($sql);
	}
}

$bigtype1113 = $_REQUEST['bigtype1113'];
$is_add1113  = $_REQUEST['is_add1113'];
$day1113     = $_REQUEST['day1113'];
if(strlen($bigtype1113)>0){
	if(strlen($is_add1113)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day1113','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add1113'";
		$query = mysql_query($sql);
	}
}


$bigtype1121 = $_REQUEST['bigtype1121'];
$is_add1121  = $_REQUEST['is_add1121'];
$day1121     = $_REQUEST['day1121'];
if(strlen($bigtype1121)>0){
	if(strlen($is_add1121)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day1121','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add1121'";
		$query = mysql_query($sql);
	}
}


$bigtype1122 = $_REQUEST['bigtype1122'];
$is_add1122  = $_REQUEST['is_add1122'];
$day1122     = $_REQUEST['day1122'];
if(strlen($bigtype1122)>0){
	if(strlen($is_add1122)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day1122','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add1122'";
		$query = mysql_query($sql);
	}
}

$bigtype1123 = $_REQUEST['bigtype1123'];
$is_add1123  = $_REQUEST['is_add1123'];
$day1123     = $_REQUEST['day1123'];
if(strlen($bigtype1123)>0){
	if(strlen($is_add1123)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day1123','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add1123'";
		$query = mysql_query($sql);
	}
}


$bigtype1131 = $_REQUEST['bigtype1131'];
$is_add1131  = $_REQUEST['is_add1131'];
$day1131     = $_REQUEST['day1131'];
if(strlen($bigtype1131)>0){
	if(strlen($is_add1131)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day1131','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add1131'";
		$query = mysql_query($sql);
	}
}


$bigtype1132 = $_REQUEST['bigtype1132'];
$is_add1132  = $_REQUEST['is_add1132'];
$day1132     = $_REQUEST['day1132'];
if(strlen($bigtype1132)>0){
	if(strlen($is_add1132)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day1132','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add1132'";
		$query = mysql_query($sql);
	}
}

$bigtype1133 = $_REQUEST['bigtype1133'];
$is_add1133  = $_REQUEST['is_add1133'];
$day1133     = $_REQUEST['day1133'];
if(strlen($bigtype1133)>0){
	if(strlen($is_add1133)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`day`, `picture_path`,`type`, `difang_id`) VALUES ('$day1133','"."picture/" . $_FILES["file"]["name"]."','1','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add1133'";
		$query = mysql_query($sql);
	}
}


$bigtype10001 = $_REQUEST['bigtype10001'];
$is_add10001  = $_REQUEST['is_add10001'];
$day10001     = $_REQUEST['day10001'];
if(strlen($bigtype10001)>0){
	if(strlen($is_add10001)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`picture_path`,`type`, `difang_id`) VALUES ('"."picture/" . $_FILES["file"]["name"]."','2','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add10001'";
		$query = mysql_query($sql);
	}
}


$bigtype10002 = $_REQUEST['bigtype10002'];
$is_add10002  = $_REQUEST['is_add10002'];
$day10002     = $_REQUEST['day10002'];
if(strlen($bigtype10002)>0){
	if(strlen($is_add10002)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`picture_path`,`type`, `difang_id`) VALUES ('"."picture/" . $_FILES["file"]["name"]."','2','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add10002'";
		$query = mysql_query($sql);
	}
}

$bigtype10003 = $_REQUEST['bigtype10003'];
$is_add10003  = $_REQUEST['is_add10003'];
$day10003     = $_REQUEST['day10003'];
if(strlen($bigtype10003)>0){
	if(strlen($is_add10003)==0){
		//新增图片
		$sql="INSERT INTO `picture_day_info`(`picture_path`,`type`, `difang_id`) VALUES ('"."picture/" . $_FILES["file"]["name"]."','2','$id')";
		$query = mysql_query($sql);
	}else{
		//更新图片
		$sql="UPDATE `picture_day_info` SET `picture_path`='"."picture/" . $_FILES["file"]["name"]."' WHERE id='$is_add10003'";
		$query = mysql_query($sql);
	}
}
?>
<SCRIPT LANGUAGE="javascript"> 
	//alert("<?php echo $bigtype2;?>"+" 内容"+"<?php echo $is_add2;?>");
	window.location.href="index.php?id=<?php echo $id;?>&day=<?php echo $_SESSION['day'];?>"; 
</SCRIPT>
<body class="body_css" id="body" >
</body>